enchant();

window.onload = function() {
	var game = new Game(320, 320);
	game.preload("chara1.gif");
	game.fps = 30;
	game.onload = function() {
		var stage = new Group();
		
		var myShip = new Sprite(32, 32);
		myShip.image = game.assets["chara1.gif"];
		myShip.x = 160;
		myShip.y = 160;
		myShip.addEventListener("enterframe", function() {
			this.x += 1;
			this.rotate(10);
		});
		stage.addChild(myShip);
		
		game.rootScene.addChild(stage);
		game.rootScene.backgroundColor = "rgb(0, 0, 0)";
	};
	game.start();
};
